def run(params:list[str]):
    from modelscope.pipelines import pipeline
    from modelscope.utils.constant import Tasks
    import sys
    from ApiBase import apiBase
    input_image = apiBase.decode64(sys.argv[1])

    general_recognition = pipeline(
                Tasks.general_recognition,
                model='damo/cv_resnest101_general_recognition')
    #input_image='https://pailitao-image-recog.oss-cn-zhangjiakou.aliyuncs.com/mufan/img_data/maas_test_data/dog.png'
    result = general_recognition(input_image)
    print(result)